package com.example.practice.manager;

import com.example.practice.api.DemoService;
import com.example.practice.pojo.DemoDTO;
import com.example.practice.pojo.DemoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @author: helong.sun
 * @date: 2020-12-23 16:40
 * @Version 1.0
 **/
@Service
public class DemoManager {


    @Autowired
    private DemoService demoService;

    public String getName(DemoVO demoVO) {
        DemoDTO demoDTO = new DemoDTO();
        demoDTO.setName(demoVO.getName());
        return demoService.getName(demoDTO);
    }
}
